﻿#region Using Directives

using System;

using Microsoft.SharePoint;

#endregion Using Directives

namespace StooRob.SharePoint.ContentUpdater
{
    /// <summary>
    /// Page already checked out exception class.
    /// </summary>
    public class AlreadyCheckedOutException : StooRobException
    {
        #region Constructors and Destructors

		/// <summary>
        /// Initialises a new instance of the <see cref="T:StooRob.SharePoint.ContentUpdater.AlreadyCheckedOutException"/> class.
		/// </summary>
        /// <param name="url">The URL of the page that is already checked out.</param>
        /// <param name="user">The <see cref="T:Microsoft.SharePoint.SPUser"/> who checked the page out.</param>
        /// <param name="status">The status of the current check out.</param>
        public AlreadyCheckedOutException(string url, SPUser user, SPFile.SPCheckOutStatus status)
			: base()
		{
            string s = Exceptions.AlreadyCheckedOut;
			_msg = string.Format(s, url, user, status.ToString());
		}

		#endregion Constructors and Destructors

    }
}